package edu.spec.rxz.week08.homework.D2t;

public class TestFeeder {

        public static void main(String[] args) {
        Feeder feeder=new Feeder();
        Animal animal=new Dog();
        Foodfood=new Bone("肉骨头");
        feeder.feed(animal,food); //给狗喂肉骨头
        animal=new Cat();
        food=new Fish("鱼");
        feeder.feed(Animal,food); //给猫喂鱼


        }
        }
